<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
    'Login',
);
Yii::app()->clientScript->registerCoreScript('jquery');
?>
<div class="span-11">
    <div id="sidebar">
            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/web/xds.png" />
        <br>
        <?php
        echo $company->title.'<br>地址:'.$company->address.'<br>电话：'.$company->tel;
        ?>
    </div><!-- sidebar -->

</div>
<div class="span-9 last">
    <div id="content">
        <div class="form">
            <?php $form=$this->beginWidget('CActiveForm', array(
                'id'=>'user-form',
                'action'=>Yii::app()->createUrl('api/login_form'),
                'enableClientValidation'=>true,
                'clientOptions'=>array(
                    'validateOnSubmit'=>true,
                ),
            )); ?>

            <p id='explain' style="text-align: left">
                文章产品展示：<br>
                <?php
               foreach($article as $v){
                    echo '标题：'.$v['title'].'<br>';
               }
                ?>


            </p>
            <div id='login'>
                <?php echo CHtml::submitButton('连接上网'); ?>
            </div>

            <?php $this->endWidget(); ?>
        </div>
      
    </div><!-- content -->
</div>